package com.atguigu.spzx.feign.cart.fallback;

import com.atguigu.spzx.feign.cart.CartFeignClient;
import com.atguigu.spzx.model.entity.cart.CartInfo;
import com.atguigu.spzx.model.vo.common.Result;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class CartFeignClientFallback implements CartFeignClient {

    @Override
    public Result<List<CartInfo>> getallCheckCart() {
        log.info("ProductFeignClientFallback...getBySkuId的方法执行失败了");
        return Result.fail();
    }

    @Override
    public Result clearCheckedCart() {
        log.info("ProductFeignClientFallback...getBySkuId的方法执行失败了");
        return Result.fail();
    }
}